package com.cinc.mdm.modules.materialProp.vo;

import java.util.List;
import com.cinc.mdm.modules.materialProp.entity.MdmMaterialProp;
import com.cinc.mdm.modules.materialProp.entity.MdmMaterialPropValue;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 物料属性
 * @Author: jeecg-boot
 * @Date:   2023-02-25
 * @Version: V1.0
 */
@Data
@ApiModel(value="mdm_material_propPage对象", description="物料属性")
public class MdmMaterialPropPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**编码*/
	@Excel(name = "编码", width = 15)
	@ApiModelProperty(value = "编码")
    private String code;
	/**名称*/
	@Excel(name = "名称", width = 15)
	@ApiModelProperty(value = "名称")
    private String name;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**属性组*/
	@Excel(name = "属性组", width = 15, dictTable = "mdm_material_prop_group", dicText = "name", dicCode = "id")
    @Dict(dictTable = "mdm_material_prop_group", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "属性组")
    private String groupId;
	/**排序*/
	@Excel(name = "排序", width = 15)
	@ApiModelProperty(value = "排序")
    private Integer sort;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**启用标志*/
	@Excel(name = "启用标志", width = 15)
	@ApiModelProperty(value = "启用标志")
    private String enableFlag;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
	@ApiModelProperty(value = "租户ID")
    private Integer tenantId;

	@ExcelCollection(name="物料属性值")
	@ApiModelProperty(value = "物料属性值")
	private List<MdmMaterialPropValue> mdmMaterialPropValueList;

}
